/*
 * CMSC 331, Section 0101
 * Project 1: Recursive Descent Parser
 */

package cx3k.searcher.util.exception;

public class InvalidTokenException extends Exception {
/**
 * This Exception should be thrown when a Token is not recognized by the
 * Tokenizer class.
 */
	
	private static final long serialVersionUID = 1L;

	/** 
	 * Default constructor, storing a default message describing the 
	 * exception.
	 */
	public InvalidTokenException(){
		this("EXCEPTION: The Token is invalid.  It was either not recognized, " +
				"or there was a problem parsing the Token.");
	}
	
	/**
	 * Constructor that stores a specialized message relating to this 
	 * Exception.
	 * @param msg The specialized message.
	 */
	public InvalidTokenException(String msg){
		super(msg);
	}
}
